/**
 * Copyright (C) 2013 SHANGHAI VOLKSWAGEN, All rights reserved.
 * License version 1.0, a copy of which has been included with this.
 *
 * @File name：com.bwie.community.service.impl.WebAddImpl
 * @Create on：2024/4/5
 * @Author：liuchang
 */
package com.bwie.community.service.impl;

import com.bwie.common.domain.ChatHistory;
import com.bwie.community.mapper.CommunityMapper;
import com.bwie.community.service.WebAdd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>ClassName：WebAddImpl</p >
 * <p>Description：</p >
 * <p>Author：liuchang</p >
 * <p>Date：2024/4/5</p >
 */
@Service
public class WebAddImpl implements WebAdd {
    @Autowired
    private CommunityMapper communityMapper;
    @Override
    public List<ChatHistory> chatHistoryList(String roomId) {
        return communityMapper.chatHistoryList(roomId);
    }

    @Override
    public void addLog(ChatHistory chatHistory) {
        communityMapper.addLog(chatHistory);
    }
}
